package session.stateless.CRM;

import entity.CRM.ProductPrice;
import java.util.List;
import javax.ejb.Local;

@Local
public interface ProductPriceBeanLocal {
    
    public ProductPrice createProductPrice(String productType, int lowerLimit, int higherLimit, double price);
    public void updateProductPrice(long productId, String productType, int lowerLimit, int higherLimit, double price);
    public void deleteProductPrice(long productId);
    public double calculatePrice(String productType, Long quantity);
    public ProductPrice lookupRange(String productType, Long quantity);
    public List<ProductPrice> getProductPriceList();
    public boolean checkConflict(long productId, String productType, int lowerLimit, int higherLimit);

    public List<ProductPrice> getProductPricesByType(String productType);
    
    public ProductPrice getFirstProductPriceA();
    public ProductPrice getFirstProductPriceB();
    public ProductPrice getFirstProductPriceC();
    public ProductPrice getFirstProductPriceD();
            
}
